const app = getApp();
Page({
  onLoad: function () {
    var nickname = '';
    var openid = '';
    var icon = '';
    try {
      nickname = wx.getStorageSync('nickname');
      icon = wx.getStorageSync('icon');
      openid = wx.getStorageSync('openid');
    } catch (e) {}
    if (!openid || !nickname) {
      wx.navigateTo({
        url: '../logs/accredit?jump=../grow/index'
      });
    }

    var url = app.wapDomain + "Canvas/answer.html?nickname=" + encodeURI(nickname) + "&icon=" + icon + "&openid=" + openid;
    console.log("测试" + url);
    //"ss" 
    this.setData({
      url: url,
    });
  },
  onShareAppMessage: function () {
    return app.onShareAppMessage();
  }  
})



